package com.sbl;

import com.sbl.service.IAccountServiceAnnoTx;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 *      通过注解进行配置  + 点点的XML
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations ={"classpath:bean_anno_tx.xml"} )
public class AccountServiceTXAnno {

    @Autowired
    private IAccountServiceAnnoTx as;

    @Test
    public  void testTransfer(){
        as.transfer("ccc","ddd",100f);

    }

}
